//
//  DDBascViewController.swift
//  doudou_weibo
//
//  Created by apple on 2016/11/15.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class DDBascViewController: UITableViewController,DDVisitorDelegate {
    
    
    var isLogin: Bool = false
    let visitor = DDVisitorView()
    
    let visitorView = DDVisitorView()
    override func loadView() {
        
        if isLogin {
            super.loadView()
        }else{
            self.view = visitor
            visitor.delegate = self
        }
        
    }
    
    //代理方法
    func logIn() {
        print("登录的代理方法被执行了")
    }
    func register() {
        print("注册的代理方法被执行了")
    }
    

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
